package com.mt.roll.wms.params;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mt.roll.core.base.BaseParam;
import com.mt.roll.core.validator.groups.UpdateGroup;
import com.mt.roll.core.vo.CommonVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jodd.typeconverter.impl.StringArrayConverter;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @auther yanyang
 * @date 2021/11/04 10:43
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "设备基础信息", description = "用于新增和更新设备基础信息", parent = CommonVo.class)
public class EquipmentParam extends BaseParam {

    private static final long serialVersionUID = 1L;
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键，更新时需要填写", example = "1")
    private Long id;

    /**
     * 编码
     */
    @ApiModelProperty(value = "code",example = "cb-110")
    private String code;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "name",example = "PID1.1")
    private String name;

    /**
     * 英文名称
     */
    @ApiModelProperty(value = "en_name",example = "STB")
    private String enName;

    /**
     * 缩写
     */
    @ApiModelProperty(value = "abbr",example = "xx1")
    private String abbr;

    /**
     * 设备类型
     */
    @ApiModelProperty(value = "equipment_type",example = "1")
    private Long equipmentType;

    /**
     * 制造商
     */
    @ApiModelProperty(value = "supplier_id",example = "1")
    private Long supplierId;

    /**
     * 生产日期
     */
    @ApiModelProperty(value = "production_time",example = "2020-12-27T00:00:00")
    private LocalDateTime productionTime;

    /**
     * 进厂日期
     */
    @ApiModelProperty(value = "enter_time",example = "2020-12-27T00:00:00")
    private LocalDateTime enterTime;

    /**
     * 调试日期
     */
    @ApiModelProperty(value = "debug_time",example = "2020-12-27T00:00:00")
    private LocalDateTime debugTime;

    /**
     * 调试周期(天)
     */
    @ApiModelProperty(value = "debug_period",example = "10")
    private BigDecimal debugPeriod;

    /**
     * 规格
     */
    @ApiModelProperty(value = "spec",example = "spec")
    private String spec;

    /**
     * 设备功能
     */
    @ApiModelProperty(value = "function",example = "func")
    private String function;

    /**
     * 设备图片
     */
    @ApiModelProperty(value = "eq_img_url",example = "img")
    private String eqImgUrl;

    /**
     * 设备资料
     */
    @ApiModelProperty(value = "eq_data_url",example = "data1")
    private String eqDataUrl;

    /**
     * 备注
     */
    @ApiModelProperty(value = "remark",example = "123")
    private String remark;

    /**
     * IP
     */
    @ApiModelProperty(value = "ip",example = "192.168.0.112")
    private String ip;

    /**
     * 端口号
     */
    @ApiModelProperty(value = "port",example = "1127")
    private BigDecimal port;


    /**
     * PLC版本
     */
    @ApiModelProperty(value = "plc_version",example = "2.4")
    private String plcVersion;


    /**
     * ERP

     @ApiModelProperty(value = "erp",example = "e")
     private String erp;*/

    /**
     * 每腔加工数量

     @ApiModelProperty(value = "processing_quantity_per_cavity",example = "1")
     private BigDecimal processingQuantityPerCavity;*/

    /**
     * 腔体数量

     @ApiModelProperty(value = "number_of_cavities",example = "1")
     private BigDecimal numberOfCavities;*/

    /**
     * 生产厂商

     @ApiModelProperty(value = "manufacturer",example = "manu")
     private String manufacturer;*/

    /**
     * 是否通讯

     @ApiModelProperty(value = "communication",example = "0")
     private BigDecimal communication;*/


}
